package com.car.domain;

import java.io.Serializable;

    public class Car implements Serializable {
        private static final long serialVersionUID = 846695635140067999L;
        /**
         * 主键id
         */
        private Integer id;
        /**
         * 车名
         */
        private String name;
        /**
         * 品牌
         */
        private String brand;
        /**
         * 价格
         */
        private Double price;
        /**
         * 汽车类型 电动 油
         */
        private String type;
        /**
         * 汽车颜色
         */
        private String color;
        /**
         * 汽车编号
         */
        private String carNum;
        /**
         * 汽车状态 0 未销售 1已经销售
         */
        private Integer status;
        /**
         * 发布人
         */
        private Integer employeeId;


        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getBrand() {
            return brand;
        }

        public void setBrand(String brand) {
            this.brand = brand;
        }

        public Double getPrice() {
            return price;
        }

        public void setPrice(Double price) {
            this.price = price;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getColor() {
            return color;
        }

        public void setColor(String color) {
            this.color = color;
        }

        public String getCarNum() {
            return carNum;
        }

        public void setCarNum(String carNum) {
            this.carNum = carNum;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public Integer getEmployeeId() {
            return employeeId;
        }

        public void setEmployeeId(Integer employeeId) {
            this.employeeId = employeeId;
        }

        @Override
        public String toString() {
            return "Car{" +
                    "id=" + id +
                    ", name='" + name + '\'' +
                    ", brand='" + brand + '\'' +
                    ", price=" + price +
                    ", type='" + type + '\'' +
                    ", color='" + color + '\'' +
                    ", carNum='" + carNum + '\'' +
                    ", status=" + status +
                    ", employeeId=" + employeeId +
                    '}';
        }
    }
